﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BitcoinCommon.Data
{
    public class BTCeInfo
    {
        public string URL = "https://btc-e.com";
        public string BaseURL = "https://btc-e.com";
        public string ClientID = "BK815ACJ-UNN8MQ06-44ZYJZ4U-KWCZGKUX-H7QZQUQH";
        public string ClientSecret = "d01c51448eb339f9202168773d91dae18fc39b7dfee1234cb8321c80a71ce5e4";
        public string UserID = "hyperioner@gmail.com";
        public string UserPWD = "overdrive@1";

        public string AccessToken = "";
        public string RefreshToken = "";
        int iNonce = 0;

        public BTCeInfo()
        {
            initializedNonce();
        }

        public void initializedNonce()
        {
            iNonce = (int)(DateTime.Now - DateTime.Parse("2015-04-01")).TotalSeconds;
        }

        public int Nonce()
        {
            return iNonce++;
        }

        public Dictionary<string, string> GetURLParameterAccessKey()
        {
            Dictionary<string, string> dicURLParameter = new Dictionary<string, string>();
            dicURLParameter.Add("nonce", Nonce().ToString());

            return dicURLParameter;
        }

    }
}
